package com.shop.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shop.mapper.Ums_Member_Level_Mapper;
import com.shop.service.Ums_Member_Level_Service;
import com.shop.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Ums_Member_Level_ServiceImpl implements Ums_Member_Level_Service {
    @Autowired
    private Ums_Member_Level_Mapper ums_member_level_mapper;
    /*
     * @Description  查询全部会员等级
     * @param
     * @return com.shop.utils.R
     * @author liusupeng
     * @date 2020/11/5 18:17
     */
    @Override
    public R findAllLevel() {

        R r1=new R();
        r1.data(ums_member_level_mapper.selectList(new QueryWrapper<>()));
        return r1;
    }
}
